package com.sinocare.common.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MedicalResult implements Serializable {
    private static final long serialVersionUID = -896420043201146878L;

    private Integer resultId;          //检测结果id
    private Integer patientId;         //检测者id
    private Integer surveyorId;             //检测人员id
    private Double bmiResult;        //BMI身体质量指数
    private Double gluResult;           //血糖值
    private Integer gluFoodStatus;           //血糖植物状态
    private Double hbaicResult;                //糖化血红蛋白
    private Integer uaResult;               //血尿酸
    private Double hdlCResult;                //高密度脂蛋白胆固醇
    private Double ldlCResult;                //低密度脂蛋白胆固醇
    private Double tgResult;              //甘油三脂
    private Double cholResult;              //总胆固醇
    private Double tcHdlCResult;               //总胆/高密比值
    private Double ketResult;                //血酮
    private Integer sbpResult;                //收缩压
    private Integer dbpResult;              //舒张压

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    @TableField("create_time")//表示当前属性名对应的字段名
    private Date createTime;                                //创建时间

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    @TableField("update_time")//表示当前属性名对应的字段名
    private Date updateTime;                                //修改时间

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    @TableField("test_time")//表示当前属性名对应的字段名
    private Date testTime;                              //检测时间

    private Integer status;                //状态
    private String remark;                //备注
}
